﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TestConsoleApp
{
    public class TestMath
    {

        public static void Test()
        {
            //var temp = (int)Math.Log10(100);

            //var temp1 = Math.Pow(10, -24);

            //var temp2 = -0.0001* temp1;
            //var temp3= Math.Pow(10, -18);
            //Console.WriteLine(temp2.ToString("f28"));

            //if (temp1 <= temp3)
            //{


            //}

            int size = (int)Math.Pow(2, 3);
            size = 7;

            int index = 0;
            for (int n = 0; n < 10; n++)
            {
                index = n;
                index &= (size - 1);
                Console.WriteLine("size:" + size + "--current:" + index);
            }

            Console.ReadLine();
        }

    }
}
